package book.service.impl;

import book.dao.IBookDao;
import book.entity.Book;
import book.service.IBookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/3/30/030.
 */
@Service("service")
public class BookServiceImpl implements IBookService {
    @Resource
    private IBookDao bookDao;
    @Override
    public int addBook(Book book) {
        return bookDao.addBook(book) ;
    }

    @Override
    public List<Book> bookList() {
        return bookDao.bookList();
    }

}
